import {requests} from "@/api/request";
import { Layer } from "@/class/map/Layer";

export const reqGetLayer = ()=>requests<Layer[]>({
    url:"layer/",
    method:"get",
})
export const reqUploadLayer = (layer:Layer)=>requests({
    url:"layer/",
    method:"post",
    data:layer,
})
export const reqUpdateLayer = (layer:Layer)=>requests({
    url:"layer/",
    method:"put",
    data:layer,
})
export const reqDeleteLayer = (id:string)=>requests({
    url:"layer/",
    method:"delete",
    data:id,
})